import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import '@/Vant'
import FastClick from 'fastclick'
import './plugins/filters'

//swiper东西
// import VueAwesomeSwiper from 'vue-awesome-swiper'
// import 'swiper/swiper-bundle.css'
// Vue.use(VueAwesomeSwiper)

//baidutudu
import BaiduMap from 'vue-baidu-map'

Vue.use(BaiduMap, {
  // ak 是在百度地图开发者平台申请的密钥 详见 http://lbsyun.baidu.com/apiconsole/key */
  ak: 'vvHAUpNenyTFYeF6KSP4TI3LzU0zsXWg'
})

Vue.filter('setWH',(url,arg)=>{
  return url.replace(/w\.h/,arg);
})


Vue.config.productionTip = false
//解决移动端300ms延迟
FastClick.attach(document.body)

router.afterEach(() => {
  window.scrollTo(0,0);
})
new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
